<template>
  <div class="course-type-wrapper">
    <div class="only-course-list">
      <template v-if="data.length > 0" v-for="(item, index) in data" :key="index">
        <CourseCard :item="item" />
      </template>
    </div>
  </div>
</template>

<script lang="ts" setup>
import CourseCard from "@/components/course/index/CourseCard.vue";

const props = defineProps({
  data: {
    type: Array,
    default: []
  }
});

</script>

<style scoped lang="scss">
@import "@/assets/style/course/global.scss";

.search {
  width: 143px;
  height: 35px;
  border-radius: 22.5px;
  opacity: 1;
  font-size: 16px;
  font-weight: normal;
  text-align: center;
  letter-spacing: 0;
  line-height: 35px;
  color: #ffffff;
  background: $theme_color;
}

.only-course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
}
</style>
